package com.yangfei.mystudy1020.activity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

import com.yangfei.mystudy1020.R;

public class TestFuncActivity extends Activity {

    int xp = 1000;

    class Xpc{
       public int a = 0;
       public int b = 1;
    }
    Xpc mXpc;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_func);
        mXpc = new Xpc();
        Log.d("TestFuncActivity","mXpc.a = "+mXpc.a+" mXpc.b = "+mXpc.b);
        fun(mXpc);
        Log.d("TestFuncActivity","mXpc.a = "+mXpc.a+" mXpc.b = "+mXpc.b);
    }

    private void fun(Xpc x){
        x.a = 99;
        x.b = 23;
    }
}
